package src.数据结构.栈;

public class Node<T> {
    public Node pre; // 指向上一个节点
    public T item; // 存储元素
    public Node next; // 指向下一个元素的指针

    public Node() {
    }

    public Node(T item) {
        this.item = item;
    }

    public Node(T item, Node next) {
        this.item = item;
        this.next = next;
    }

    public Node(Node pre, T item, Node next) {
        this.pre = pre;
        this.item = item;
        this.next = next;
    }
}
